package com.zy.proxy;

import com.zy.service.UserService;

/**
 * @author LittleDesire
 * @description
 * @date 2022-03-29 周二 18:03
 * @since 17
 */
public class UserProxyImpl implements UserService {
    public UserProxyImpl(UserService us) {
        this.us = us;
    }

    private final UserService us;


    /**
     * 经纪人决定要不要唱，在哪里唱
     * @param sn
     */
    @Override
    public String song(String sn) {
        System.out.println("经纪人开始接商演");
        String song = us.song(sn);
        System.out.println("处理后续事务");
        return song;
    }
}
